package cn.gov.pbc.dream.dao;

import cn.gov.pbc.dream.pojo.repository.BankFinancingOrgDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BankFinancingOrgDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BankFinancingOrgDo record);

    int insertSelective(BankFinancingOrgDo record);

    BankFinancingOrgDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BankFinancingOrgDo record);

    int updateByPrimaryKey(BankFinancingOrgDo record);

    BankFinancingOrgDo selectByCode(String code);

    List<BankFinancingOrgDo> selectByQuery(@Param("nameOrCode") String nameOrCode,
                                           @Param("isNoName") Boolean isNoName);

    int updateByOrgCode(@Param("orgCode") String orgCode, @Param("orgName") String orgName);
}